package com.community.contents.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.community.contents.dto.DiscussDTO;
import com.community.contents.dto.TopicDTO;
import com.community.contents.entity.TopicEntity;
import com.community.contents.entity.UserEntity;
import com.community.contents.vo.TopicVo;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 圈子 Mapper 接口
 * </p>
 *
 * @author admin
 * @since 2023-02-22
 */
public interface TopicMapper extends BaseMapper<TopicEntity> {
    public IPage<TopicDTO> pageDto(Page<TopicDTO> page);

    TopicVo detail(Integer id);

    Page<UserEntity> topicUserList(@Param("topicId") Integer topicId, Page<UserEntity> page);

}
